{template 'web/_header'}
<ul class="nav nav-tabs">
    <li class=""><a href="{php echo $this->createPluginWebUrl('express/express')}">快递预处理</a></li>
    <li class="active"><a href="javascript:;">快递单号管理</a></li>
    <li class=""><a href="{php echo $this->createPluginWebUrl('express/shipment')}">批量发货</a></li>
</ul>


<div class='panel panel-default'>
    <div class='panel-heading'>
        快递单号池设置
    </div>
    <div class='panel-body'>

        <table class="table">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>起始单号</th>
                    <th>结束单号</th>
                    <th>已使用</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            {loop $courierLists $list}
            <tr>
                <td>{$list['pk']}</td>
                <td>{$list['identification']}{$list['start_number']}</td>
                <td>{$list['identification']}{$list['end_number']}</td>
                <td>{$list['use']}</td>
                <td>
                    <a class='btn btn-default' title="订单号" href="{php echo $this->createPluginWebUrl('express/courier', array('op' => 'show', 'id' => $list['id'], 'expressid' => $_GPC['expressid']))}"><i class='fa fa-list'></i></a>
                    <a class='btn btn-default' title="删除" href="{php echo $this->createPluginWebUrl('express/courier', array('op' => 'delete', 'courierId' => $_GPC['id'], 'id' => $list['id']))}" onclick="return confirm('请谨慎操作，此操作可能会影响模块的稳定？');return false;"><i class='fa fa-remove'></i></a>
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>
    </div>
    <div class='panel-footer'>
        <a class='btn btn-default' href="{php echo $this->createPluginWebUrl('express/courier', array('op' => 'editor', 'expressid' => $_GPC['expressid']))}"><i class="fa fa-plus"></i> 添加单号池</a>
    </div>
</div>


{template 'common/footer'}